// EditHistory.h: interface for the CEditHistory class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_EDITHISTORY_H__A2409F0B_6C53_40C0_804A_B4B36E1838B6__INCLUDED_)
#define AFX_EDITHISTORY_H__A2409F0B_6C53_40C0_804A_B4B36E1838B6__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "EditStep.h"
#include "AnsiEditorView.h"	// Added by ClassView

class CEditHistory  
{
public:
	int GetStepCount();
	void CancelCurStep();
	CEditStep* GetCurStep();
	CEditStep* Add(CPoint &pt)
	{
		return Add(pt.x, pt.y);
	}
	CEditStep* Add(int nCursorX, int nCursorY);
	void Redo();
	void Undo();
	BOOL CanRedo();
	BOOL CanUndo();
	void Clear();
	CEditHistory(CAnsiPage *pAnsiPage);
	~CEditHistory();
protected:
	CArray< CEditStep*, CEditStep* > m_arrStep;
	int m_nCurStep;
	int m_nTopStep;
	CAnsiPage *m_pPage;
};

#endif // !defined(AFX_EDITHISTORY_H__A2409F0B_6C53_40C0_804A_B4B36E1838B6__INCLUDED_)
